﻿#include "GameObj.h"
#include "GameUtil.h"

using namespace cocos2d;

GameObj::~GameObj(void)
{
}

bool GameObj::init(){  
    if (!CCSprite::init()) {  
        return false;  
    }  

	// init
	d_winSize = CCDirector::sharedDirector()->getWinSize();
	d_setting = GameUtil::instance()->getSetting();
	d_fieldSize = d_setting->getFieldSize();
    return true;  
} 

CCRect GameObj::getRect()
{
	return GameUtil::getRect(1.0f, this);
}